<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录</title>
</head>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.12.4.min.js" ></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.min.js" ></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/login.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/iconfont/Rjdaoico.css" type="text/css">

<style>
</style>
<body>
	<div class="log">
		<div class="pic"></div>
		<span>青鸟影院</span>
		<a href="${pageContext.request.contextPath}/index.jsp" class="a">bluebird.com</a>
		<i class="icon-edf4"> <a href="${pageContext.request.contextPath}/index.jsp">返回主页</a></i>
	</div>
	<hr>
	<div class="container">
		<form class="form-horizontal myform" action="${pageContext.request.contextPath}/memberLogin" method="post">
			<h1>登录</h1>
			<c:if test="${msg != null }">
				<h3>${msg}</h3><br>
			</c:if>
			<div class="form-group">
				<label for="name" class="col-sm-2 control-label">账号:</label>
				<div class="col-sm-5">
					<input type="text" class="form-control" id="name" placeholder="用户名/手机号" name="memberName">
				</div>
			</div>
			<div class="form-group">
				<label for="password" class="col-sm-2 control-label">密码：</label>
				<div class="col-sm-5">
					<input type="password" class="form-control" id="password" placeholder="密码" name="memberPass">
				</div>
			</div>
			<div class="form-group">
				<label for="code" class="col-sm-2 control-label">验证码：</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="code" name="code">
				</div>
				<img src="CheckCodeServlet" id="Recode" /><a href="#" id="aRecode">看不清,换一张?</a><br>
			</div>

			<div class="form-group">
				<label for="submit" class="col-sm-2 control-label"></label>
				<div class="col-sm-5">
					<input type="submit" value="登录" class="btn btn-info" id="submit">
					<a href="${pageContext.request.contextPath}/register.jsp" class="alog" >没账号？先注册</a>
				</div>
			</div>
		</form>
	</div>
</body>
<script type="text/javascript">
	function s(name){
		return document.getElementById(name);
	}
	s("Recode").onclick=function(){
		s("Recode").src="CheckCodeServlet?sj="+new Date().getTime();
	}
	s("aRecode").onclick=function(){
		s("Recode").src="CheckCodeServlet?sj="+new Date().getTime();
	}
</script>
</html>